package cn.itcast.bos.dao.base;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.itcast.bos.domain.base.Courier;

public interface CourierRepository extends JpaRepository<Courier, Integer>,
		JpaSpecificationExecutor<Courier>{

	/*@Query(value="update Courier set deltag='1' where id= ?")
	@Modifying
	void delBatch(Integer parseInt);*/

	@Query(value="update Courier courier set courier.deltag=1 where courier.id in :list")
	@Modifying
	void delBatch(@Param("list") List<Integer> list);

}
